<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application.component.view' );
class HotrosViewHotros extends JView
{
	function display($tpl = null){	
		global $mainframe, $option;
		$db		=& JFactory::getDBO();
		$uri	=& JFactory::getURI();
		$filter_order 		= $mainframe->getUserStateFromRequest( $option.'filter_order',		'filter_order',		's.ordering','cmd' );
		$filter_order_Dir	= $mainframe->getUserStateFromRequest( $option.'filter_order_Dir',	'filter_order_Dir',	'',				'word' );
		JToolBarHelper::title(   JText::_( 'Quản lý hỗ trợ' ), 'generic.png' );
		JToolBarHelper::deleteList();
		JToolBarHelper::editListX();
		JToolBarHelper::publish(); 
		JToolBarHelper::unpublish();
		JToolBarHelper::addNewX();
		

		if (!in_array(strtoupper($filter_order_Dir), array('ASC', 'DESC'))) {
			$filter_order_Dir = '';
		}
		
		$javascript 	= 'onchange="document.adminForm.submit();"';	
		$caid=JRequest::getVar('parent_id');		
		$lists['order_Dir'] = $filter_order_Dir;
		$lists['order'] = $filter_order;
	
	
		$items		= & $this->get( 'Data');
		$total		= & $this->get( 'Total');
		$pagination = & $this->get( 'Pagination' );	
		
		$this->assignRef('lists',		$lists);
		$this->assignRef('items',		$items);
		$this->assignRef('pagination',	$pagination);

		parent::display($tpl);
		
	}
}